(function() {
    var myApp = angular.module('myApp');

    myApp.constant("myUserTableOption", {
        dom: 'lftipr',
        rowReorder: true,
        processing: true, //是否显示处理状态
        serverSide: true, //是否开启服务器模式
        language: {
            url: '../../pub/datatables/zh_cn.json'
        },
        order: [[ 5, "desc" ]],
        columns    : [
            {
                render: function(data, type, row, meta) {
                    if(row.user_type==1){
                        return '<a href="../EMIE/index.html?user_id='+ row.user_id + '" target="_blank">' + row.nikename + ' </a>'
                    }else{
                        return  row.nikename;
                    }
                }
            },
            { data: 'phone' },
            { data: 'score' },
            {
                render: function(data, type, row, meta) {
                    if(row.user_type==1){
                        return '企业'
                    }else{
                        return '个人'
                    }
                }
            },
            { data:'wxnum'},
            { data:'createtime'}
        ]
    });
})();